package com.weimei.conversionTreasure.http.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class PaoLiangListBean extends BaseResult{
    @SerializedName("data")
    private List<DataDTO> data;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("id")
        private int id;
        @SerializedName("account")
        private String account;
        @SerializedName("types")
        private String types;
        @SerializedName("weight")
        private String weight;
        @SerializedName("heat")
        private String heat;
        @SerializedName("time")
        private String time;
        @SerializedName("addtime")
        private String addtime;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public String getTypes() {
            return types;
        }

        public void setTypes(String types) {
            this.types = types;
        }

        public String getWeight() {
            return "重量:"+weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public String getHeat() {
            return "水温:"+heat;
        }

        public void setHeat(String heat) {
            this.heat = heat;
        }

        public String getTime() {
            if (time.equals("已过期")){
                return time;
            }else {
                return time.substring(10);
            }
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getAddtime() {
            return addtime.substring(0,10);
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }


    }
}
